<template>
  <j-modal title="图片预览" width="800px" :visible.sync="visible" okText="确定" @ok="handleOk">
    <img :src="item.fileUrl" />
  </j-modal>
</template>

<script>
//分享modal
import { postAction } from '@/api/manage'

export default {
  name: 'ImageViewModal',
  data() {
    return {
      visible: false,
      item: {}
    }
  },
  methods: {
    show(item) {
      this.item = item
      this.visible = true
      console.log(item)
    },
    handleOk() {
      this.visible = false
    }
  }
}
</script>

<style scoped>
img {
  width: 752px;
}
</style>
